@font-face {
  font-family: 'iconfont';
  src: url('/libs/font/iconfont.eot');
  src: url('/libs/font/iconfont.eot?#iefix') format('embedded-opentype'),
  url('/libs/font/iconfont.woff2') format('woff2'),
  url('/libs/font/iconfont.woff') format('woff'),
  url('/libs/font/iconfont.ttf') format('truetype'),
  url('/libs/font/iconfont.svg#iconfont') format('svg');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.product {
  margin-top: 10px;
  padding-bottom: 40px;

  label {
    float: left;
    width: 85px;
    text-indent: 10px;
    line-height: 30px;
  }

  // 图片整个展示区域
  &-gallery {
    width: 450px;
    position: relative;
    margin-bottom: 20px;


    // 主图展示区域
    &-img {
      width: 450px;
      height: 450px;
      position: relative;

      img {
        width: 450px;
        height: 450px;
      }

      &-big {
        display: none;
        position: absolute;
        top: 0;
        left: 460px;
        width: 400px;
        height: 400px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #ccc;
        z-index: 1;

        img {
          position: absolute;
          top: 0;
          left: 0;
        }
      }
    }

    // 缩略图导航展示区域
    &-nav {
      width: 450px;
      height: 68px;
      margin-top: 18px;
      position: relative;

      > a {
        position: absolute;
        top: 0;
        width: 30px;
        height: 68px;

        &:last-child {
          right: 0;
        }

        &:before {
          content: '';
          width: 30px;
          height: 30px;
          display: block;
          margin-top: 19px;
          background-image: url("/images/icon50.png");
          background-repeat: no-repeat;
        }

        &:first-child:before {
          background-position: -48px -29px;
        }

        &:last-child:before {
          background-position: -78px -29px;
        }
      }


    }

    &-thumbs {
      width: 370px;
      height: 68px;
      margin-left: 40px;
      overflow: hidden;
      position: relative;

      ul {
        width: 200%;
        position: absolute;
        top: 0;
      }

      li {
        float: left;
        padding: 0 3px;

        a {
          border: 1px solid transparent;
          padding: 0;
          display: block;
          width: 66px;
          height: 66px;

          &.current {
            border: 1px solid #ca141d;
          }

          img {
            display: block;
            vertical-align: top;
            width: 60px;
            height: 60px;
            margin: 3px 0 0 3px;
          }
        }
      }
    }
  }

  // 商品详情展示区域
  &-property {
    min-height: 462px;
    height: auto;
    width: 700px;
    padding: 0 0 0 30px;

    // 商品元信息
    &-meta {

      h1 {
        font-size: 21px;
        overflow: hidden;
        margin-bottom: 10px;
        font-weight: 400;
      }

      span {
        display: inline-block;
        font-size: 14px;
        padding-right: 40px;
        margin-bottom: 12px;
        position: relative;
        top: -3px;
        line-height: 20px;
        color: #ca141d;
      }
    }

    &-info {
      background: #f5f5f5;
      padding-top: 14px;
      padding-bottom: 3px;

      margin-bottom: 20px;

      &-list {
        padding-bottom: 4px;
      }

      &-price {
        float: left;
        font-size: 18px;
        height: 30px;
        overflow: hidden;
        line-height: 30px;
        color: #ca141d;

        span {
          font-size: 24px;
          padding-right: 3px;
        }

        em {
          font-size: 18px;
          margin-right: 4px;
          font-style: normal;
          font-weight: 400;
        }
      }
    }

  }

  &-ticket {
    float: left;
    position: relative;
    background: #ef5a62;
    color: #fff;
    line-height: 20px;
    padding: 0 2px;
    margin-right: 15px;
    margin-left: 5px;
    margin-top: 5px;
    cursor: pointer;

    &:after, &:before {
      content: '';
      width: 5px;
      height: 20px;
      position: absolute;
      top: 0;
      background-image: url("/images/icon50.png");
      background-repeat: no-repeat;
    }

    &:before {
      left: -5px;

      background-position: -27px 0;
    }

    &:after {
      right: -5px;
      background-position: -32px 0;
    }

    &-link {
      line-height: 30px;
      color: #ca141d;
    }
  }

  // 商品促销信息
  &-prom {
    float: left;

    &-item {
      margin-bottom: 2px;
      min-height: 30px;

      .tag {
        float: left;
        line-height: 18px;
        height: 18px;
        border: 1px solid #ca141d;
        padding: 0 6px;
        min-width: 24px;
        color: #ca141d;
        text-align: center;
        margin-right: 10px;
        margin-top: 5px;
        font-style: normal;
        font-weight: 400;
      }

      span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex: 1
      }

      &.prom-more {
        display: none;
      }

      .expand-prom {
        position: absolute;
        right: 12px;
        color: #888;
        line-height: 30px;

        &:after {
          content: "";
          width: 12px;
          height: 7px;
          display: inline-block;
          margin-left: 8px;
          background: url("/images/icon50.png") no-repeat -4px -7px;
        }
      }
    }

    &-con {
      float: left;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      display: flex;
      justify-content: center;
      margin-top: 0;
      line-height: 30px;
      max-width: 485px;
      position: relative;
    }
  }

  // 赠品信息
  &-parts-list {
    float: left;
    max-width: 480px;
    max-height: 30px;
    overflow: hidden;

    a {
      margin-left: 10px;
      margin-right: 10px;
      position: relative;
      float: left;
      color: #888;
      line-height: 30px;

      img {
        width: 30px;
        height: 30px;
        vertical-align: top;
      }
    }
  }

  &-service {
    margin-bottom: 10px;

    &-address {
      &-prompt {
        float: left;
        line-height: 30px;
        position: relative;
        top: -1px;
        padding-left: 10px;
      }

      &-desc {
        width: 614px;
        line-height: 24px;

        li {
          display: inline-block;
          margin-right: 12px;
          position: relative;
          line-height: 18px;

          span {
            font-size: 14px;
            line-height: 17px;
            color: #3a3a3a;

          }
        }
      }
    }
  }
}

.first-shop:after {
  content: '+';
  position: absolute;
  right: -14px;
  color: #999;
}

.product-parts-list .last-shop {
  margin-right: 0;
}

.line {
  width: 100%;
  height: 1px;
  background: #ddd;
}

.red {
  color: #ca141d;
}

.product-description {
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 16px;

  label {
    line-height: 1.5;
  }
}

.product-choose {
  label {
    line-height: 40px;
  }

  &.product-color li {
    a {
      height: 38px;
    }

    p {
      height: 34px;
      overflow: hidden;
      float: left;
      margin-top: 3px;
      margin-left: 6px;
    }

    span {
      height: 34px;
      line-height: 17px;
      min-width: 0;
      max-width: 86px;
    }
  }

  &-detail {
    width: 605px;
    float: left;

    li {
      float: left;
      margin: 0 10px 10px 0;

      &.selected {
        a {
          border: 1px solid #ca141d;
        }
      }
      &.disabled {
        a {
          border: 1px solid #e4e4e4;
          color: #c4c4c4;
          cursor: not-allowed;
        }
      }

      a {
        display: block;
        border: 1px solid #a4a4a4;
        text-align: center;
        height: 28px;
        border-radius: 2px;
        position: relative;
        padding: 0 12px;
        color: #3a3a3a;

        span {
          height: 30px;
          line-height: 15px;
          display: table-cell;
          vertical-align: middle;
          text-align: center;
          word-wrap: break-word;
          word-break: break-all;
          min-width: 54px;
        }

        img {
          width: 30px;
          height: 30px;
          float: left;
          margin-top: 4px;
        }
      }
    }
  }
}

.product-pulldown {
  position: relative;
  margin-bottom: 10px;
  margin-right: 10px;

  a {
    height: 28px;
    line-height: 28px;
    padding: 0 34px 0 10px;
    float: left;
    border: 1px solid #d6d6d6;
    border-radius: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    position: relative;
    color: #3a3a3a;

    &:after {
      content: "";
      width: 20px;
      height: 20px;
      position: absolute;
      top: 4px;
      right: 8px;
      background: url('/images/icon50.png') no-repeat 0 0;
    }
  }
}

.product-recommend {
  float: left;
  width: 605px;
  max-height: 80px;
  overflow: hidden;

  li {
    float: left;
    margin: 0 10px 10px 0;

    a {
      background: #f5f5f5;
      line-height: 30px;
      padding: 0 20px;
      display: block;
      max-width: 565px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      border-radius: 2px;
      color: #3a3a3a;

      &:hover {
        color: #ca141d;
      }
    }
  }
}

.product-selected-info {
  span {
    color: #ca141d;
    width: 568px;
  }

  label {
    line-height: 1.5;
  }
}

.product-operation {
  position: relative;
  margin-top: 10px;

  .selected-num {
    float: left;
    border: 1px solid #d6d6d6;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 2px;

    input[type='text'] {
      outline: none;
      float: left;
      width: 41px;
      height: 44px;
      line-height: 44px;
      border: 0;
      font-size: 18px;
      text-align: center;
      border-right: 1px solid #e2e2e2;
    }
  }

  .selected-btn {
    width: 21px;
    float: left;

    a {
      display: block;
      font-size: 16px;
      width: 21px;
      height: 21px;
      line-height: 22px;
      text-align: center;
      color: #777;
      font-weight: bold;

      &:first-child {
        border-bottom: 1px solid #e2e2e2;
      }

      &.disabled {
        color: #c4c4c4;
        cursor: not-allowed;
      }
    }
  }

  .selected-button-main {
    position: relative;
    margin-right: 85px;

    a {
      float: left;
      margin-right: 10px;
      display: block;
      width: 172px;
      height: 46px;
      font-size: 18px;
      line-height: 46px;
      text-align: center;
      color: #fff;
      border-radius: 2px;
      border: 0;
      cursor: pointer;
    }

    .product-btn0 {
      background: #fc600c;
    }

    .product-btn1 {
      background: #ca151d;
    }
  }
}


